package com.lp.aop.jdk;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
import org.springframework.cglib.proxy.MethodProxy;
import org.springframework.stereotype.Component;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.lang.reflect.Method;

/**
 * @author: lp
 * @create: 2024-04-10 7:37
 * @description: TODO
 */

public class MethodInterceptor2 implements MethodInterceptor {


	@Nullable
	@Override
	public Object invoke(@Nonnull MethodInvocation invocation) throws Throwable {
		System.out.println("come MethodInterceptor2");
		Object proceed = invocation.proceed();
		System.out.println("out MethodInterceptor2");
		return proceed;
	}
}
